From: LLVM Packaging Team Date: Tue, 16 Dec 2025 11:47:30 +0000 (+0100) Subject: force-sse2-compiler-rt X-Git-Tag: archive/raspbian/1%21.1.8-1+rpi1~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=749c9f57d2bc4d76f30f00cd2c5e5ed0cd178128;p=llvm-toolchain-21.git force-sse2-compiler-rt =================================================================== Gbp-Pq: Name force-sse2-compiler-rt.diff --- diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index 8427d2e852..53e46eb042 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -1039,6 +1039,12 @@ if (COMPILER_RT_BUILD_CRT) append_list_if(COMPILER_RT_ENABLE_CET -fcf-protection=full CRT_CFLAGS) endif() + if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64") + append_list_if(COMPILER_RT_HAS_FLOAT16 -msse2 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS) + else () + append_list_if(COMPILER_RT_HAS_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS) + endif() + foreach(arch ${BUILTIN_SUPPORTED_ARCH}) add_compiler_rt_runtime(clang_rt.crtbegin OBJECT